package com.lbc.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author xyl
 * @date 2021-03-17 18:48
 */
@Data
public class NewsVO {
    @ApiModelProperty("id")
    private Integer newsId;

    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("图片")
    private String mainPic;
    @ApiModelProperty("点赞量")
    private Integer likeCount;
    @ApiModelProperty("浏览量")
    private Integer pageView;

    @JsonFormat(pattern="yyyy-MM-dd  HH:mm:ss" ,  timezone="GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("是否点赞")
    private Boolean type;
}
